package com.cow.horse.repository;

import com.cow.horse.entity.HealthRecord;
import org.springframework.data.jpa.repository.JpaRepository;

public interface HealthRecordRepository extends JpaRepository<HealthRecord, Long> {
    HealthRecord findByName(String name); // 修改方法名为 findByName
}